package com.example.java10;

public class Test01 {
    public static void main(String[] args) throws ClassNotFoundException{
        //方法1
        Class cls=Class.forName("com.example.demo.annotation.Test01");
        //方法2
        Class<Test01>Test01= Test01.class;
        //方法3
        Test01 test01 = new Test01();
        Class aClass = test01.getClass();
    }

}
